package cn.starrysky108.simpleerp.product.entity;

import cn.starrysky108.simpleerp.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 商品分类表
 * </p>
 *
 * @author Carl Lee
 * @since 2021-08-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("product_category")
@ApiModel(value = "ProductCategory对象", description = "商品分类表")
public class ProductCategory extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "上级分类id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "分类等级（1-3）")
    @TableField("level")
    private Integer level;

    @ApiModelProperty(value = "类别名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "是否显示，默认true")
    @TableField("is_show")
    private Integer isShow;


}
